<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/jsp/declare.jsp" %>

<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath %>" />
	<title>房屋-列表</title>
	<%@ include file="/common/jsp/common.jsp" %>
	
	<script>
	function grantList(communityId, roomId) {
		if (communityId && roomId)
			redirect("mvc/master/" + communityId + "/" + roomId + "/mainRoomGrantList.htm");
	}
	</script>
</head>
<body id="room">
	<table border="0" cellspacing="0" borderColor="#DADADA">
		<thead>
			<tr>
				<th>房屋</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="room" items="${roomList}">
			<tr onclick="grantList('${room.community_id }', '${room.id }')">
				<td>${room.community_name } ${room.dept_name } ${room.building }#${room.unit }单元${room.room_num }房</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>